package com.xxxx.seckill.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.ToString;

@Getter
@AllArgsConstructor
@ToString
public enum RespBeanEnum {
    //通用状态码
    SUCCESS(200,"success"),
    ERROR(500,"服务端异常"),
    MOBILE_ERROR(50021,"手机号不正确"),
    NO_REPEATED(50023,"限购一件商品"),
    NO_USER(50022,"请先登录"),
    NO_ORDER(50024,"没有相应的订单"),
    COUNT_FAIL(50025,"商品库存不足"),
    ERROR_LOCATION(50026,"网址非法，请重试" ),
    ERROR_CAPTCHA(50027,"验证码错误" );

    private final Integer code;
    private final String message;
}
